package com.example.demo.service;

import com.example.demo.bean.Order;
import com.example.demo.bean.User;
import com.example.demo.dao.OrderDao;
import com.example.demo.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderService {
    @Autowired
    OrderDao userDao;

    public List<Order> list() {
        List<Order> all = userDao.findAll();
        return all;
    }


}
